//
//  HTopView.h
//  QuanJieShopProject
//
//  Created by 刘中义 on 2018/2/25.
//  Copyright © 2018年 apple. All rights reserved.
//

#import <UIKit/UIKit.h>

@protocol HTopViewDelegate<NSObject>
-(void)HTopViewBtnClick:(NSInteger)tag;
@end

@interface HTopView : UIView
//按钮个数
@property (nonatomic, assign) NSInteger btnNumber;
//按钮颜色
@property (nonatomic, strong) UIColor *btnClolor;
//按钮字体颜色
@property (nonatomic, strong) UIColor *btnTitleClolor;
//按钮选中颜色
@property (nonatomic, strong) UIColor *btnSelectClolor;
//线条view的颜色
@property (nonatomic, strong) UIColor *lineColor;
//按钮显示文字或者图片的数组 4个按钮数组个数就为4个
@property (nonatomic, strong) NSMutableArray *btnArray;

//按钮tag起始数字
@property (nonatomic, assign) NSInteger btnTagOne;
- (id)initWithFrame:(CGRect)frame;
- (void)setUI;
@property (nonatomic,weak)id<HTopViewDelegate>delegate;

/**
 设置手势
 
 @param superView supview
 */
- (void)setGesture:(UIView *)superView ;

- (void)tagBtnClick:(NSInteger)tag;

@end
